<div style="width: 500px;">
<form id="ajax_form" onsubmit="return CandidateJobPreference.processJobPreference();">
	<table class="table">
		<tbody>
			<tr>
				<td class="right rlabel"><label for="idcategory"><?php echo $this->lang->line('job_preference_category'); ?>:</label></td>
				<td colspan="3"><div id="jobCategory"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idspecialty"><?php echo $this->lang->line('job_preference_specialty'); ?>:</label></td>
				<td colspan="3"><div id="jobSpecialty"></div></td>
			</tr>
			<tr>
				<td width="120" class="right rlabel"><label for="idhierarchy"><?php echo $this->lang->line('job_preference_hierarchy'); ?>:</label></td>
				<td colspan="3"><div id="jobHierarchy"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idcountry"><?php echo $this->lang->line('job_preference_country'); ?>:</label></td>
				<td colspan="3"><div id="ajaxCountry"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idstate"><?php echo $this->lang->line('job_preference_state'); ?>:</label></td>
				<td colspan="3"><div id="ajaxState"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="minsalary"><?php echo $this->lang->line('job_preference_minsalary'); ?></label></td>
				<td width="125">
				<input type="text" size="15" class="input" value="<?php echo $minsalary; ?>" id="minsalary" name="minsalary" /></td>
				<td class="center rlabel" width="40"><label for="maxsalary"><?php echo $this->lang->line('job_preference_maxsalary'); ?></label></td>
				<td>
				<input type="text" size="15" class="input" value="<?php echo $maxsalary; ?>" id="maxsalary" name="maxsalary" /></td>
			</tr>
			<tr>
				<td colspan="4" class="center">
					<label for="btnEnter"><input type="submit" id="btnEnter" class="submit" value="<?php echo $this->lang->line('job_preference_save'); ?>" /></label>
				</td>
			</tr>
		</tbody>
	</table>
	<div id="result_ajax"></div>
	<input type="hidden" value="<?php echo $id_jobpreference; ?>" name="idjobpreference" id="idjobpreference" />
</form>
</div>
<script type="text/javascript">
CandidateJobPreference.getJobHierarchy();
CandidateJobPreference.getJobCategory();
<?php 
	if (isset($set_category_value)) echo $set_category_value;
?>
CandidateJobPreference.getJobSpecialty();
getCountry('#ajaxCountry', '#ajaxState', null, '/single/any');
<?php 
	if (isset($set_country_value)) echo $set_country_value;
?>
getState('#ajaxState', null, '/multiple/any');
<?php 
	if (isset($extrascript)) echo $extrascript;
?>
</script>